<!DOCTYPE html>
<!--
==========================================================================
云捷GO自动生成列表页面代码,只生成一次,按需修改.
生成日期：2020-03-26 20:35:17 +0800 CST
生成路径: template/module/config/list.html
生成人：yunjie
==========================================================================
-->
<html lang="zh">
<head>
    {{template "header" (OssUrl)}}
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>  
                        <li>
                            <p>参数主键11：</p>
                            <input type="text" name="configId"/>
                        </li>
                            
                        <li>
                            <p>参数名称111：</p>
                            <input type="text" name="configName"/>
                        </li>
                            
                        <li>
                            <p>参数键名111：</p>
                            <input type="text" name="configKey"/>
                        </li>
                            
                        <li>
                            <p>参数键值：</p>
                            <input type="text" name="configValue"/>
                        </li>
                              <li>
                                <p>系统内置（Y是 N否）：</p>
                                <select name="configType">
                                    <option value="">所有</option>
                                </select>
                            </li> 
                                    
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">
            {{getPermiButton .uid "module:config:add" "$.operate.add()" "新增" "btn btn-success" "fa fa-plus"}}
            {{getPermiButton .uid "module:config:edit" "$.operate.edit()" "修改" "btn btn-primary single disabled" "fa fa-edit"}}
            {{getPermiButton .uid "module:config:remove" "$.operate.removeAll()" "删除" "btn btn-danger multiple disabled" "fa fa-remove"}}
            {{getPermiButton .uid "module:config:export" "$.table.exportExcel()" "导出" "btn btn-warning" "fa fa-download"}}
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
{{template "footer" (OssUrl)}}
<script type="text/javascript">
    var editFlag = '{{hasPermi .uid "module:config:edit"}}';
    var removeFlag = '{{hasPermi .uid "module:config:remove"}}';

                        
    var prefix = ctx + "module/config";

    $(function () {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit?id={id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "参数配置",
            columns: [
                {
                    checkbox: true
                },  
                {
                    field: 'config_id',
                    title: '参数主键11',
                    visible: false
                },     
                {
                    field: 'config_name',
                    title: '参数名称111'
                },      
                {
                    field: 'config_key',
                    title: '参数键名111'
                },      
                {
                    field: 'config_value',
                    title: '参数键值'
                },      
                {
                    field: 'config_type',
                    title: '系统内置（Y是 N否）'
                },              
                {
                    field: 'remark',
                    title: '备注'
                },    
                {
                    title: '操作',
                    align: 'center',
                    formatter: function (value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.config_id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.config_id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }
            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>